package com.youzan.open.sdk.gen.v3_0_0.model;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;
import com.youzan.open.sdk.model.APIParams;
import com.youzan.open.sdk.model.ByteWrapper;
import com.youzan.open.sdk.model.FileParams;
import java.util.List;
import java.util.Map;
import java.util.Date;

public class YouzanPayRefundApplyParams implements APIParams, FileParams  {

    /**
     * 收单号
     */
    private String acquireNo;
    /**
     * 商户退款单号
     */
    private String outBizNo;
    /**
     * 退款金额
     */
    private Long refundAmount;

    public void setAcquireNo(String acquireNo) {
        this.acquireNo = acquireNo;
    }

    public String getAcquireNo() {
        return this.acquireNo;
    }

    public void setOutBizNo(String outBizNo) {
        this.outBizNo = outBizNo;
    }

    public String getOutBizNo() {
        return this.outBizNo;
    }

    public void setRefundAmount(Long refundAmount) {
        this.refundAmount = refundAmount;
    }

    public Long getRefundAmount() {
        return this.refundAmount;
    }


    public Map<String, Object> toParams() {
        Map<String, Object> params = Maps.newHashMap();
        if (acquireNo != null) {
            params.put("acquire_no", acquireNo);
        }
        if (outBizNo != null) {
            params.put("out_biz_no", outBizNo);
        }
        if (refundAmount != null) {
            params.put("refund_amount", refundAmount);
        }
        return params;
    }

    public Multimap<String, ByteWrapper> toFileParams() {
        Multimap<String, ByteWrapper> params = ArrayListMultimap.create();

            return params;
    }


}